package com.service.imput;

import com.dao.UserDao;
import com.entity.User;
import com.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("UserService")
public class UserServiceImp implements UserService {
    @Resource
    private UserDao userDao;

    @Override
    public List<User> finUser() {
        return userDao.finUser();
    }

    @Override
    public User user(String realName, String password) {
        return userDao.user(realName,password);
    }

    @Override
    public int userPassword(String password) {
        return userDao.userPassword(password);
    }

    @Override
    public int updatePassword(String password, int id) {
        return userDao.updatePassword(password,id);
    }

    @Override
    public User userId(int id) {
        return userDao.userId(id);
    }

    @Override
    public int updateUser(User user) {
        return userDao.updateUser(user);
    }

    @Override
    public int insertUser(User user) {
        return userDao.insertUser(user);
    }

    @Override
    public List<User> listUser(String account, String realName) {
        return userDao.listUser(account,realName);
    }

}
